#include<stdio.h>
#include"calculate_week.h"
#include"str_to_int.h"


void print_month(void)
{
	int i;
	week = ++week%7;
	printf("\n the calender of this month as following\n");
	printf("\n*******************************\n");
	printf("SUN  MON  TUE  WEN  THU  FIR  STA\n");
	for(i = 0;i < week;i++)
	{
		printf("    ");
	}
	for(i = 0; i<= month;i++)
	{
		printf("%2d ",i);
		week++;
		if(week % 7 == 0&&i != month)
		{
			printf("\n");
		}
	}
	printf("\n*******************************\n");
	printf("\nOK!\n");
}